import request from '@/utils/request'


//  查询督查列表
export function querySupervisionCheckList(params) {
  return request({
    url: '/business/defect/defectSupervisionCheck/querySupervisionCheckList',
    method: 'get',
    params
  })
}

//  获取督查详情
export function getSupervisionCheckInfo(params) {
  return request({
    url: '/business/defect/defectSupervisionCheck/getSupervisionCheckInfo',
    method: 'get',
    params
  })
}

//  增加督查
export function addSupervisionCheck(data) {
  return request({
    url: '/business/defect/defectSupervisionCheck/addSupervisionCheck',
    method: 'post',
    data
  })
}

//  修改督查
export function updateSupervisionCheck(data) {
  return request({
    url: '/business/defect/defectSupervisionCheck/updateSupervisionCheck',
    method: 'put',
    data
  })
}

// 删除督查
export function deleteSupervisionCheck(params) {
  return request({
    url: `/business/defect/defectSupervisionCheck/deleteSupervisionCheck`,
    method: 'delete',
    params
  })
}

//  督查隐患列表
export function defectSupervisionQuestionCheckQueryQuestion(params) {
  return request({
    url: '/business/defect/defectSupervisionQuestionCheck/queryQuestion',
    method: 'get',
    params
  })
}

//  增加督查隐患
export function defectSupervisionQuestionCheckAddQuestion(data) {
  return request({
    url: '/business/defect/defectSupervisionQuestionCheck/addQuestion',
    method: 'post',
    data
  })
}

//  修改督查隐患
export function defectSupervisionQuestionCheckUpdateQuestion(data) {
  return request({
    url: '/business/defect/defectSupervisionQuestionCheck/updateQuestion',
    method: 'put',
    data
  })
}

// 删除抽查隐患
export function defectSupervisionQuestionCheckRemoveQuestion(params) {
  return request({
    url: `/business/defect/defectSupervisionQuestionCheck/removeQuestion`,
    method: 'delete',
    params
  })
}
